/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.web.entity;

import java.io.Serializable;


/**
 *
 * @author liqianru
 */
public class Test implements Serializable {

    private String topic;//试题题目
    private String qestionA;
    private String qestionB;
    private String qestionC;
    private String qestionD;
    private String answer;//试题答案
    private int score;
    private String cid;//试题科目
    private int qid;//试题编号
    private int courseid;
    private String coursename;
    
    
    //写构造函数

    public Test(String topic, String qestionA, String qestionB, String qestionC, String qestionD, String answer, int score, String cid, int qid, int courseid, String coursename) {
        this.topic = topic;
        this.qestionA = qestionA;
        this.qestionB = qestionB;
        this.qestionC = qestionC;
        this.qestionD = qestionD;
        this.answer = answer;
        this.score = score;
        this.cid = cid;
        this.qid = qid;
        this.courseid = courseid;
        this.coursename = coursename;
    }

    public Test() {
    }

    public Test(String cid, int qid) {
        this.cid = cid;
        this.qid = qid;
    }

    public Test(String answer) {
        this.answer = answer;
    }

    public Test(String topic, String qestionA, String qestionB, String qestionC, String qestionD, String answer, int score, String cid, int qid) {
        this.topic = topic;
        this.qestionA = qestionA;
        this.qestionB = qestionB;
        this.qestionC = qestionC;
        this.qestionD = qestionD;
        this.answer = answer;
        this.score = score;
        this.cid = cid;
        this.qid = qid;
    }

    public Test(String topic, String qestionA, String qestionB, String qestionC, String qestionD, String answer, int score, String cid) {
        this.topic = topic;
        this.qestionA = qestionA;
        this.qestionB = qestionB;
        this.qestionC = qestionC;
        this.qestionD = qestionD;
        this.answer = answer;
        this.score = score;
        this.cid = cid;
    }
    
    //教师用的！！！
    public Test(String topic, String qestionA, String qestionB, String qestionC, String qestionD, int qid ,String coursename,String answer,int score) {
        this.topic = topic;
        this.qestionA = qestionA;
        this.qestionB = qestionB;
        this.qestionC = qestionC;
        this.qestionD = qestionD;
        this.qid = qid;
        this.coursename = coursename;
        this.answer = answer;
        this.score = score;
    }

    public int getCourseid() {
        return courseid;
    }

    public void setCourseid(int courseid) {
        this.courseid = courseid;
    }

    public String getCoursename() {
        return coursename;
    }

    public void setCoursename(String coursename) {
        this.coursename = coursename;
    }

    public Test(String topic, String qestionA, String qestionB, String qestionC, String qestionD, String answer, int score, String cid, int qid, int courseid) {
        this.topic = topic;
        this.qestionA = qestionA;
        this.qestionB = qestionB;
        this.qestionC = qestionC;
        this.qestionD = qestionD;
        this.answer = answer;
        this.score = score;
        this.cid = cid;
        this.qid = qid;
        this.courseid = courseid;
    }

    




    public String getCid() {
        return cid;
    }

    public int getQid() {
        return qid;
    }

    public String getTopic() {
        return topic;
    }

    public String getAnswer() {
        return answer;
    }

    public String getQestionA() {
        return qestionA;
    }

    public String getQestionB() {
        return qestionB;
    }

    public String getQestionC() {
        return qestionC;
    }

    public String getQestionD() {
        return qestionD;
    }

    public int getScore() {
        return score;
    }

    public void setCid(String cid) {
        this.cid = cid;
    }

    public void setQid(int qid) {
        this.qid = qid;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public void setQestionA(String qestionA) {
        this.qestionA = qestionA;
    }

    public void setQestionB(String qestionB) {
        this.qestionB = qestionB;
    }

    public void setQestionC(String qestionC) {
        this.qestionC = qestionC;
    }

    public void setQestionD(String qestionD) {
        this.qestionD = qestionD;
    }

    public void setScore(int score) {
        this.score = score;
    }

}
